package com.cq.hd.member.api.vo;



import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class AppMerchantDetailVo implements Serializable {

    @ApiModelProperty(value = "商户id")
    private Long id;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "商户简称")
    private String merchantShortName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "所属行业code")
    private String mcc;

    @ApiModelProperty(value = "所属行业名称")
    private String mccName;

    @ApiModelProperty(value = "联系人姓名")
    private String contactName;

    @ApiModelProperty(value = "联系人手机号")
    private String contactMobileNo;

    @ApiModelProperty(value = "在售商品数")
    private Integer saleGoodsCount = 0;


    @ApiModelProperty(value = "本月销售额=商户商品本金+商品订单总补贴")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal monthOrderAmt = BigDecimal.ZERO;

    @ApiModelProperty(value = "本月订单数")
    private Integer monthOrderCount = 0;


    @ApiModelProperty(value = "本月补贴金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal monthSubsidyAmt = BigDecimal.ZERO;


    @ApiModelProperty(value = "累计销售额=累计商户商品本金+累计商品订单补贴")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt = BigDecimal.ZERO;

    @ApiModelProperty(value = "累计订单数")
    private Integer totalOrderCount = 0;


    @ApiModelProperty(value = "累计补贴金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalSubsidyAmt = BigDecimal.ZERO;

}
